<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        document.write("<h1>购物清单</h1>");  
        document.write("商品名称   购物清单<br>");   
        var mai=prompt("请输入明明购买的商品名称：","蛋挞");
        document.write(mai+"&nbsp;&nbsp;&nbsp;&nbsp;");  
        var shu=prompt("请输入明明购买的商品数量：","3");

        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+shu);          
        
    </script>
</body>
</html>